﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using AzukiMap.Map;
using AzukiMap.Tools;
using AzukiMap.Tools.Logger;
using Geometries = GisSharpBlog.NetTopologySuite.Geometries;
using GeoAPI.Geometries;
using AzukiMap.Layer;
using System.Collections.Generic;

namespace AzukiMap.Renderer
{
    public class TileRenderer : Renderer
    {
        private readonly RasterRenderer _renderer;

        public TileRenderer(MapLayer layer)
            : base(layer)
        {
            _renderer = new RasterRenderer(layer);
        }

        public IList<FrameworkElement> RenderTile(TileData tile)
        {
            return _renderer.Draw(tile.Uri, tile.OrgExtent);
        }

    }
}
